package com.cn.controller;


import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@Controller
@RequestMapping("/")
public class MainController extends AbstractController {
	
	@RequestMapping(value = "/index",method = RequestMethod.GET)
    public String hello(Model model,HttpServletRequest request, HttpServletResponse response) {
        return "index1";
    }
	
	@RequestMapping(value = "/role",method = RequestMethod.GET)
    public String main(Model model,HttpServletRequest request, HttpServletResponse response) {
        return "role";
    }
}
